package com.zxj.system.domain.exam.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;

import java.io.Serial;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

import com.zxj.common.core.domain.entity.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 题目和竞赛的关系表
 * </p>
 *
 * @author zxj2022
 * @since 2024-12-29
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tb_exam_question")
@Schema(name="ExamQuestion对象", description="题目和竞赛的关系表")
public class ExamQuestion extends BaseEntity implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "竞赛题目关系id（主键）")
    @TableId(value = "exam_question_id", type = IdType.ASSIGN_ID)
    private Long examQuestionId;

    @Schema(description = "题目id（主键）")
    private Long questionId;

    @Schema(description = "竞赛id（主键）")
    private Long examId;

    @Schema(description = "题目顺序")
    private Integer questionOrder;


}
